echo "Beginning Ubuntu Build:"
buildPath=$(pwd)
time=$(date "+%Y%m%d%H%M%S")
prefixPath=${buildPath}/dist${time}

echo ${buildPath}
echo ${prefixPath}

cp ../../../ffmpeg.git

make clean

./configure \
--prefix=${prefixPath} \
\
--enable-gpl --enable-version3 --enable-nonfree \
\
--disable-static --enable-shared \
\
--enable-libmp3lame \
--enable-libopus \
--enable-libvpx \
--enable-libx264 \
--enable-libx265 \
--enable-libfdk-aac \
\
--disable-logging \
\
--enable-avdevice \
--enable-avcodec \
--enable-avformat \
--enable-swresample \
--enable-swscale \
--enable-postproc \
--enable-avfilter \
--enable-avresample \
\
--enable-network \
\
--disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages \
\
--disable-debug \
\
--disable-asm



make -j12
make install

# 非wasm环境的配置参数
# --enable-network
# --enable-protocol=file
# --enable-demuxer=rtsp 依赖:[demuxers:asf,mov,mpegts,rm],[protocols:http,rtp,tcp,udp]